<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>思途CMS{$coreVersion}</title>
    {template 'stourtravel/public/public_min_js'}
    {php echo Common::getCss('style.css,base.css,base2.css,base_new.css'); }
    {php echo Common::getScript("jquery.validate.js"); }
</head>
<body style="background-color: #fff">
<table class="content-tab">
    <tr>
        <td width="119px" class="content-lt-td" valign="top">
            {template 'stourtravel/public/leftnav'}
            <!--右侧内容区-->
        </td>
        <td valign="top" class="content-rt-td">
            <form id="frm" name="frm">
                <div id="product_grid_panel" class="manage-nr">
                    <div class="w-set-con">
                        <div class="cfg-header-bar" id="nav">
                            <a href="javascript:;" class="fr btn btn-primary radius mr-10 mt-6" onclick="window.location.reload()">刷新</a>
                        </div>
                    </div>
                    <div class="product-add-div">
                        <ul class="info-item-block">
                            <li>
                                <span class="item-hd">审核说明：</span>
                                <div class="item-bd">
                                    <span class="item-text">勾选人工审核后，供应商分销的产品，都需平台审核后才能上架，反之产品会直接上架售卖。</span>
                                </div>
                            </li>
                            {loop $product_list $v}
                            <li>
                                <span class="item-hd">{$v['modulename']}：</span>
                                <div class="item-bd">
                                    <label class="radio-label ml-10"><input type="radio" {if $v['checked']!=1}checked="checked"{/if} name="cfg_{$v['pinyin']}_supplier_check_auto" value="0">人工审核</label>
                                    <label class="radio-label ml-10"><input type="radio" {if $v['checked']==1}checked="checked"{/if} name="cfg_{$v['pinyin']}_supplier_check_auto" value="1">自动审核</label>
                                </div>
                            </li>
                            {/loop}
                        </ul>
                    </div>
                    <div class="clear clearfix">
                        <a class="btn btn-primary radius size-L ml-115" id="btn_save" href="javascript:;">保存</a>
                    </div>
                </div>
            </form>
        </td>
    </tr>
</table>
<script>
    $(function(){
        $('#btn_save').on('click',function(){
            $.ajaxform({
                url   :  SITEURL+"supplier/ajax_product_audit_set_save",
                method  :  "POST",
                form  : "#frm",
                dataType:'json',
                success  :  function(data)
                {
                    ST.Util.showMsg('设置成功!','4',2000);
                }
            });
        });
    })
</script>
</body>
</html>